<template>
  <div class="cost-accounting-page">
    <!-- 成本概览卡片 -->
    <el-row :gutter="20" class="overview-cards">
      <el-col :xs="24" :sm="12" :md="6">
        <el-card class="overview-card">
          <div class="card-content">
            <div class="card-icon direct-cost">
              <el-icon size="24"><Box /></el-icon>
            </div>
            <div class="card-info">
              <div class="card-value">¥{{ formatNumber(costOverview.directCost) }}</div>
              <div class="card-label">直接成本</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12" :md="6">
        <el-card class="overview-card">
          <div class="card-content">
            <div class="card-icon indirect-cost">
              <el-icon size="24"><Money /></el-icon>
            </div>
            <div class="card-info">
              <div class="card-value">¥{{ formatNumber(costOverview.indirectCost) }}</div>
              <div class="card-label">间接成本</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12" :md="6">
        <el-card class="overview-card">
          <div class="card-content">
            <div class="card-icon total-cost">
              <el-icon size="24"><TrendCharts /></el-icon>
            </div>
            <div class="card-info">
              <div class="card-value">¥{{ formatNumber(costOverview.totalCost) }}</div>
              <div class="card-label">总成本</div>
            </div>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12" :md="6">
        <el-card class="overview-card">
          <div class="card-content">
            <div class="card-icon avg-cost">
              <el-icon size="24"><DataLine /></el-icon>
            </div>
            <div class="card-info">
              <div class="card-value">¥{{ formatNumber(costOverview.avgUnitCost) }}</div>
              <div class="card-label">单位平均成本</div>
            </div>
          </div>
        </el-card>
      </el-col>
    </el-row>

    <!-- 成本核算主区域 -->
    <el-card>
      <template #header>
        <div class="page-header">
          <h3>成本核算管理</h3>
          <div class="header-actions">
            <el-button type="primary" @click="showAddDialog">
              <el-icon><Plus /></el-icon>
              新建核算单
            </el-button>
            <el-button type="success" @click="handleBatchAccounting">
              <el-icon><Notebook /></el-icon>
              批量核算
            </el-button>
            <el-button @click="handleExport">
              <el-icon><Download /></el-icon>
              导出
            </el-button>
          </div>
        </div>
      </template>

      <!-- 搜索区域 -->
      <div class="search-area">
        <el-form :model="searchForm" inline>
          <el-form-item label="核算单号">
            <el-input 
              v-model="searchForm.accountingNo" 
              placeholder="请输入核算单号" 
              clearable
            />
          </el-form-item>
          <el-form-item label="产品名称">
            <el-input 
              v-model="searchForm.productName" 
              placeholder="请输入产品名称" 
              clearable
            />
          </el-form-item>
          <el-form-item label="成本类型">
            <el-select v-model="searchForm.costType" placeholder="请选择成本类型" clearable>
              <el-option label="直接材料" value="直接材料" />
              <el-option label="直接人工" value="直接人工" />
              <el-option label="制造费用" value="制造费用" />
              <el-option label="综合成本" value="综合成本" />
            </el-select>
          </el-form-item>
          <el-form-item label="状态">
            <el-select v-model="searchForm.status" placeholder="请选择状态" clearable>
              <el-option label="待核算" value="待核算" />
              <el-option label="核算中" value="核算中" />
              <el-option label="已完成" value="已完成" />
              <el-option label="已审核" value="已审核" />
            </el-select>
          </el-form-item>
          <el-form-item label="日期范围">
            <el-date-picker
              v-model="searchForm.dateRange"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
              format="YYYY-MM-DD"
              value-format="YYYY-MM-DD"
            />
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="handleSearch">
              <el-icon><Search /></el-icon>
              搜索
            </el-button>
            <el-button @click="handleReset">
              <el-icon><Refresh /></el-icon>
              重置
            </el-button>
          </el-form-item>
        </el-form>
      </div>

      <!-- 表格区域 -->
      <el-table :data="tableData" v-loading="loading" stripe>
        <el-table-column type="selection" width="55" />
        <el-table-column prop="accountingNo" label="核算单号" width="150" fixed />
        <el-table-column prop="productName" label="产品名称" width="150" />
        <el-table-column prop="productCode" label="产品编码" width="120" />
        <el-table-column prop="quantity" label="数量" width="100" />
        <el-table-column label="直接材料成本" width="130" align="right">
          <template #default="{ row }">
            <span class="cost-value">¥{{ formatNumber(row.materialCost) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="直接人工成本" width="130" align="right">
          <template #default="{ row }">
            <span class="cost-value">¥{{ formatNumber(row.laborCost) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="制造费用" width="120" align="right">
          <template #default="{ row }">
            <span class="cost-value">¥{{ formatNumber(row.overheadCost) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="总成本" width="130" align="right">
          <template #default="{ row }">
            <span class="total-cost-value">¥{{ formatNumber(row.totalCost) }}</span>
          </template>
        </el-table-column>
        <el-table-column label="单位成本" width="120" align="right">
          <template #default="{ row }">
            <span class="unit-cost-value">¥{{ formatNumber(row.unitCost) }}</span>
          </template>
        </el-table-column>
        <el-table-column prop="costType" label="成本类型" width="100">
          <template #default="{ row }">
            <el-tag :type="getCostTypeTag(row.costType)">
              {{ row.costType }}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="status" label="状态" width="100">
          <template #default="{ row }">
            <el-tag :type="getStatusTag(row.status)">
              {{ row.status }}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="accountingDate" label="核算日期" width="120" />
        <el-table-column prop="operator" label="操作人" width="100" />
        <el-table-column label="操作" width="220" fixed="right">
          <template #default="{ row }">
            <el-button type="primary" size="small" @click="handleView(row)">
              查看
            </el-button>
            <el-button 
              v-if="row.status === '待核算'" 
              type="success" 
              size="small" 
              @click="handleCalculate(row)"
            >
              核算
            </el-button>
            <el-button 
              v-if="row.status === '已完成'" 
              type="warning" 
              size="small" 
              @click="handleAudit(row)"
            >
              审核
            </el-button>
            <el-button 
              type="danger" 
              size="small" 
              @click="handleDelete(row)"
            >
              删除
            </el-button>
          </template>
        </el-table-column>
      </el-table>

      <!-- 分页 -->
      <div class="pagination">
        <el-pagination
          v-model:current-page="pagination.currentPage"
          v-model:page-size="pagination.pageSize"
          :page-sizes="[10, 20, 50, 100]"
          :total="pagination.total"
          layout="total, sizes, prev, pager, next, jumper"
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
        />
      </div>
    </el-card>

    <!-- 新建/编辑成本核算单对话框 -->
    <el-dialog
      v-model="dialogVisible"
      :title="dialogTitle"
      width="900px"
      @close="handleDialogClose"
    >
      <el-form
        ref="formRef"
        :model="form"
        :rules="formRules"
        label-width="120px"
      >
        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item label="产品名称" prop="productName">
              <el-input v-model="form.productName" placeholder="请输入产品名称" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="产品编码" prop="productCode">
              <el-input v-model="form.productCode" placeholder="请输入产品编码" />
            </el-form-item>
          </el-col>
        </el-row>

        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item label="生产数量" prop="quantity">
              <el-input-number 
                v-model="form.quantity" 
                :min="1" 
                style="width: 100%"
                placeholder="请输入生产数量"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="核算日期" prop="accountingDate">
              <el-date-picker
                v-model="form.accountingDate"
                type="date"
                placeholder="请选择核算日期"
                style="width: 100%"
                format="YYYY-MM-DD"
                value-format="YYYY-MM-DD"
              />
            </el-form-item>
          </el-col>
        </el-row>

        <el-divider content-position="left">成本明细</el-divider>

        <el-form-item label="直接材料成本" prop="materialCost">
          <el-input-number 
            v-model="form.materialCost" 
            :min="0" 
            :precision="2"
            style="width: 100%"
            placeholder="请输入直接材料成本"
            @change="calculateTotalCost"
          >
            <template #prefix>¥</template>
          </el-input-number>
        </el-form-item>

        <el-form-item label="材料明细">
          <el-table :data="form.materialDetails" border>
            <el-table-column prop="materialName" label="材料名称" width="150">
              <template #default="{ row }">
                <el-input v-model="row.materialName" size="small" />
              </template>
            </el-table-column>
            <el-table-column prop="quantity" label="数量" width="120">
              <template #default="{ row }">
                <el-input-number v-model="row.quantity" :min="0" size="small" style="width: 100%" />
              </template>
            </el-table-column>
            <el-table-column prop="unitPrice" label="单价" width="120">
              <template #default="{ row }">
                <el-input-number v-model="row.unitPrice" :min="0" :precision="2" size="small" style="width: 100%" />
              </template>
            </el-table-column>
            <el-table-column label="金额" width="120">
              <template #default="{ row }">
                ¥{{ formatNumber(row.quantity * row.unitPrice) }}
              </template>
            </el-table-column>
            <el-table-column label="操作" width="80">
              <template #default="{ $index }">
                <el-button type="danger" size="small" @click="removeMaterialDetail($index)">
                  删除
                </el-button>
              </template>
            </el-table-column>
          </el-table>
          <el-button type="primary" size="small" style="margin-top: 10px" @click="addMaterialDetail">
            <el-icon><Plus /></el-icon>
            添加材料
          </el-button>
        </el-form-item>

        <el-form-item label="直接人工成本" prop="laborCost">
          <el-input-number 
            v-model="form.laborCost" 
            :min="0" 
            :precision="2"
            style="width: 100%"
            placeholder="请输入直接人工成本"
            @change="calculateTotalCost"
          >
            <template #prefix>¥</template>
          </el-input-number>
        </el-form-item>

        <el-form-item label="制造费用" prop="overheadCost">
          <el-input-number 
            v-model="form.overheadCost" 
            :min="0" 
            :precision="2"
            style="width: 100%"
            placeholder="请输入制造费用"
            @change="calculateTotalCost"
          >
            <template #prefix>¥</template>
          </el-input-number>
        </el-form-item>

        <el-divider content-position="left">成本汇总</el-divider>

        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item label="总成本">
              <el-input-number 
                v-model="form.totalCost" 
                :disabled="true"
                :precision="2"
                style="width: 100%"
              >
                <template #prefix>¥</template>
              </el-input-number>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="单位成本">
              <el-input-number 
                v-model="form.unitCost" 
                :disabled="true"
                :precision="2"
                style="width: 100%"
              >
                <template #prefix>¥</template>
              </el-input-number>
            </el-form-item>
          </el-col>
        </el-row>

        <el-form-item label="备注">
          <el-input 
            v-model="form.remark" 
            type="textarea" 
            :rows="3"
            placeholder="请输入备注信息" 
          />
        </el-form-item>
      </el-form>

      <template #footer>
        <el-button @click="dialogVisible = false">取消</el-button>
        <el-button type="primary" @click="handleSubmit" :loading="submitLoading">
          确定
        </el-button>
      </template>
    </el-dialog>

    <!-- 成本详情对话框 -->
    <el-dialog
      v-model="detailDialogVisible"
      title="成本核算详情"
      width="800px"
    >
      <el-descriptions :column="2" border>
        <el-descriptions-item label="核算单号">{{ currentDetail.accountingNo }}</el-descriptions-item>
        <el-descriptions-item label="产品名称">{{ currentDetail.productName }}</el-descriptions-item>
        <el-descriptions-item label="产品编码">{{ currentDetail.productCode }}</el-descriptions-item>
        <el-descriptions-item label="生产数量">{{ currentDetail.quantity }}</el-descriptions-item>
        <el-descriptions-item label="直接材料成本">
          <span class="cost-value">¥{{ formatNumber(currentDetail.materialCost) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="直接人工成本">
          <span class="cost-value">¥{{ formatNumber(currentDetail.laborCost) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="制造费用">
          <span class="cost-value">¥{{ formatNumber(currentDetail.overheadCost) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="总成本">
          <span class="total-cost-value">¥{{ formatNumber(currentDetail.totalCost) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="单位成本">
          <span class="unit-cost-value">¥{{ formatNumber(currentDetail.unitCost) }}</span>
        </el-descriptions-item>
        <el-descriptions-item label="成本类型">
          <el-tag :type="getCostTypeTag(currentDetail.costType)">
            {{ currentDetail.costType }}
          </el-tag>
        </el-descriptions-item>
        <el-descriptions-item label="状态">
          <el-tag :type="getStatusTag(currentDetail.status)">
            {{ currentDetail.status }}
          </el-tag>
        </el-descriptions-item>
        <el-descriptions-item label="核算日期">{{ currentDetail.accountingDate }}</el-descriptions-item>
        <el-descriptions-item label="操作人">{{ currentDetail.operator }}</el-descriptions-item>
        <el-descriptions-item label="备注" :span="2">{{ currentDetail.remark || '无' }}</el-descriptions-item>
      </el-descriptions>
    </el-dialog>
  </div>
</template>

<script setup>
import { ref, reactive, computed, onMounted } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'

// 响应式数据
const loading = ref(false)
const dialogVisible = ref(false)
const detailDialogVisible = ref(false)
const submitLoading = ref(false)
const formRef = ref()
const dialogTitle = ref('新建成本核算单')

// 成本概览数据
const costOverview = reactive({
  directCost: 850000,
  indirectCost: 320000,
  totalCost: 1170000,
  avgUnitCost: 234
})

// 搜索表单
const searchForm = reactive({
  accountingNo: '',
  productName: '',
  costType: '',
  status: '',
  dateRange: []
})

// 表单数据
const form = reactive({
  productName: '',
  productCode: '',
  quantity: 1,
  accountingDate: '',
  materialCost: 0,
  laborCost: 0,
  overheadCost: 0,
  totalCost: 0,
  unitCost: 0,
  remark: '',
  materialDetails: []
})

// 表单验证规则
const formRules = {
  productName: [
    { required: true, message: '请输入产品名称', trigger: 'blur' }
  ],
  productCode: [
    { required: true, message: '请输入产品编码', trigger: 'blur' }
  ],
  quantity: [
    { required: true, message: '请输入生产数量', trigger: 'blur' }
  ],
  accountingDate: [
    { required: true, message: '请选择核算日期', trigger: 'change' }
  ],
  materialCost: [
    { required: true, message: '请输入直接材料成本', trigger: 'blur' }
  ],
  laborCost: [
    { required: true, message: '请输入直接人工成本', trigger: 'blur' }
  ],
  overheadCost: [
    { required: true, message: '请输入制造费用', trigger: 'blur' }
  ]
}

// 分页数据
const pagination = reactive({
  currentPage: 1,
  pageSize: 10,
  total: 0
})

// 当前详情
const currentDetail = reactive({})

// 表格数据
const tableData = ref([
  {
    id: 1,
    accountingNo: 'CA20240115001',
    productName: '智能手机X1',
    productCode: 'SP001',
    quantity: 1000,
    materialCost: 350000,
    laborCost: 120000,
    overheadCost: 80000,
    totalCost: 550000,
    unitCost: 550,
    costType: '综合成本',
    status: '已审核',
    accountingDate: '2024-01-15',
    operator: '张三',
    remark: '第一季度生产批次'
  },
  {
    id: 2,
    accountingNo: 'CA20240115002',
    productName: '平板电脑T1',
    productCode: 'TB001',
    quantity: 500,
    materialCost: 180000,
    laborCost: 60000,
    overheadCost: 40000,
    totalCost: 280000,
    unitCost: 560,
    costType: '综合成本',
    status: '已完成',
    accountingDate: '2024-01-15',
    operator: '李四',
    remark: ''
  },
  {
    id: 3,
    accountingNo: 'CA20240116001',
    productName: '智能手表W1',
    productCode: 'SW001',
    quantity: 2000,
    materialCost: 200000,
    laborCost: 80000,
    overheadCost: 50000,
    totalCost: 330000,
    unitCost: 165,
    costType: '综合成本',
    status: '核算中',
    accountingDate: '2024-01-16',
    operator: '王五',
    remark: ''
  },
  {
    id: 4,
    accountingNo: 'CA20240116002',
    productName: '无线耳机E1',
    productCode: 'EB001',
    quantity: 3000,
    materialCost: 90000,
    laborCost: 30000,
    overheadCost: 20000,
    totalCost: 140000,
    unitCost: 46.67,
    costType: '直接材料',
    status: '待核算',
    accountingDate: '2024-01-16',
    operator: '赵六',
    remark: ''
  }
])

// 方法
const formatNumber = (value) => {
  if (typeof value === 'number') {
    return value.toLocaleString('zh-CN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })
  }
  return value
}

const getCostTypeTag = (type) => {
  const typeMap = {
    '直接材料': 'primary',
    '直接人工': 'success',
    '制造费用': 'warning',
    '综合成本': 'info'
  }
  return typeMap[type] || 'info'
}

const getStatusTag = (status) => {
  const statusMap = {
    '待核算': 'info',
    '核算中': 'warning',
    '已完成': 'success',
    '已审核': ''
  }
  return statusMap[status] || 'info'
}

const loadData = () => {
  loading.value = true
  setTimeout(() => {
    pagination.total = tableData.value.length
    loading.value = false
  }, 500)
}

const handleSearch = () => {
  pagination.currentPage = 1
  loadData()
}

const handleReset = () => {
  Object.assign(searchForm, {
    accountingNo: '',
    productName: '',
    costType: '',
    status: '',
    dateRange: []
  })
  handleSearch()
}

const showAddDialog = () => {
  dialogTitle.value = '新建成本核算单'
  dialogVisible.value = true
  resetForm()
}

const handleView = (row) => {
  Object.assign(currentDetail, row)
  detailDialogVisible.value = true
}

const handleCalculate = async (row) => {
  try {
    await ElMessageBox.confirm('确定要进行成本核算吗？', '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    })
    
    const index = tableData.value.findIndex(item => item.id === row.id)
    if (index > -1) {
      tableData.value[index].status = '已完成'
      ElMessage.success('核算完成')
      loadData()
    }
  } catch {
    // 用户取消操作
  }
}

const handleAudit = async (row) => {
  try {
    await ElMessageBox.confirm('确定要审核该成本核算单吗？', '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    })
    
    const index = tableData.value.findIndex(item => item.id === row.id)
    if (index > -1) {
      tableData.value[index].status = '已审核'
      ElMessage.success('审核成功')
      loadData()
    }
  } catch {
    // 用户取消操作
  }
}

const handleDelete = async (row) => {
  try {
    await ElMessageBox.confirm('确定要删除该成本核算单吗？此操作不可恢复！', '提示', {
      confirmButtonText: '确定',
      cancelButtonText: '取消',
      type: 'warning'
    })
    
    const index = tableData.value.findIndex(item => item.id === row.id)
    if (index > -1) {
      tableData.value.splice(index, 1)
      ElMessage.success('删除成功')
      loadData()
    }
  } catch {
    // 用户取消操作
  }
}

const handleBatchAccounting = () => {
  ElMessage.info('批量核算功能开发中')
}

const handleExport = () => {
  ElMessage.success('导出成功')
}

const calculateTotalCost = () => {
  form.totalCost = (form.materialCost || 0) + (form.laborCost || 0) + (form.overheadCost || 0)
  form.unitCost = form.quantity > 0 ? form.totalCost / form.quantity : 0
}

const addMaterialDetail = () => {
  form.materialDetails.push({
    materialName: '',
    quantity: 0,
    unitPrice: 0
  })
}

const removeMaterialDetail = (index) => {
  form.materialDetails.splice(index, 1)
}

const handleSubmit = async () => {
  if (!formRef.value) return

  try {
    await formRef.value.validate()
    submitLoading.value = true

    // 模拟API调用
    await new Promise(resolve => setTimeout(resolve, 1000))

    // 添加新记录
    const newRecord = {
      id: Date.now(),
      accountingNo: `CA${new Date().getFullYear()}${String(new Date().getMonth() + 1).padStart(2, '0')}${String(new Date().getDate()).padStart(2, '0')}${String(tableData.value.length + 1).padStart(3, '0')}`,
      productName: form.productName,
      productCode: form.productCode,
      quantity: form.quantity,
      materialCost: form.materialCost,
      laborCost: form.laborCost,
      overheadCost: form.overheadCost,
      totalCost: form.totalCost,
      unitCost: form.unitCost,
      costType: '综合成本',
      status: '待核算',
      accountingDate: form.accountingDate,
      operator: '当前用户',
      remark: form.remark
    }
    
    tableData.value.unshift(newRecord)
    ElMessage.success('成本核算单创建成功')
    dialogVisible.value = false
    loadData()
  } catch (error) {
    console.error('表单验证失败:', error)
  } finally {
    submitLoading.value = false
  }
}

const handleDialogClose = () => {
  resetForm()
}

const resetForm = () => {
  Object.assign(form, {
    productName: '',
    productCode: '',
    quantity: 1,
    accountingDate: '',
    materialCost: 0,
    laborCost: 0,
    overheadCost: 0,
    totalCost: 0,
    unitCost: 0,
    remark: '',
    materialDetails: []
  })
  formRef.value?.clearValidate()
}

const handleSizeChange = (size) => {
  pagination.pageSize = size
  loadData()
}

const handleCurrentChange = (page) => {
  pagination.currentPage = page
  loadData()
}

// 生命周期
onMounted(() => {
  loadData()
})
</script>

<style scoped>
.cost-accounting-page {
  padding: 0;
}

.overview-cards {
  margin-bottom: 20px;
}

.overview-card {
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.card-content {
  display: flex;
  align-items: center;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  color: white;
}

.card-icon.direct-cost {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon.indirect-cost {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-icon.total-cost {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-icon.avg-cost {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-info {
  flex: 1;
}

.card-value {
  font-size: 24px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 4px;
}

.card-label {
  font-size: 14px;
  color: #909399;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header h3 {
  margin: 0;
  color: #303133;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-area {
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
}

.pagination {
  margin-top: 20px;
  text-align: right;
}

.cost-value {
  color: #409eff;
  font-weight: 600;
}

.total-cost-value {
  color: #f56c6c;
  font-weight: 700;
  font-size: 16px;
}

.unit-cost-value {
  color: #67c23a;
  font-weight: 600;
}
</style>

